package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.StationRealKpi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StationRealKpiMapper;
import com.ruoyi.system.service.IStationRealKpiService;

/**
 * 电站实时数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-19
 */
@Service
public class StationRealKpiServiceImpl implements IStationRealKpiService 
{
    @Autowired
    private StationRealKpiMapper stationRealKpiMapper;

    /**
     * 查询电站实时数据
     * 
     * @param dayPower 电站实时数据主键
     * @return 电站实时数据
     */
    @Override
    public StationRealKpi selectStationRealKpiByDayPower(Long dayPower)
    {
        return stationRealKpiMapper.selectStationRealKpiByDayPower(dayPower);
    }

    /**
     * 查询电站实时数据列表
     * 
     * @param stationRealKpi 电站实时数据
     * @return 电站实时数据
     */
    @Override
    public List<StationRealKpi> selectStationRealKpiList(StationRealKpi stationRealKpi)
    {
        return stationRealKpiMapper.selectStationRealKpiList(stationRealKpi);
    }

    /**
     * 新增电站实时数据
     * 
     * @param stationRealKpi 电站实时数据
     * @return 结果
     */
    @Override
    public int insertStationRealKpi(StationRealKpi stationRealKpi)
    {
        return stationRealKpiMapper.insertStationRealKpi(stationRealKpi);
    }

    /**
     * 修改电站实时数据
     * 
     * @param stationRealKpi 电站实时数据
     * @return 结果
     */
    @Override
    public int updateStationRealKpi(StationRealKpi stationRealKpi)
    {
        return stationRealKpiMapper.updateStationRealKpi(stationRealKpi);
    }

    /**
     * 批量删除电站实时数据
     * 
     * @param dayPowers 需要删除的电站实时数据主键
     * @return 结果
     */
    @Override
    public int deleteStationRealKpiByDayPowers(Long[] dayPowers)
    {
        return stationRealKpiMapper.deleteStationRealKpiByDayPowers(dayPowers);
    }

    /**
     * 删除电站实时数据信息
     * 
     * @param dayPower 电站实时数据主键
     * @return 结果
     */
    @Override
    public int deleteStationRealKpiByDayPower(Long dayPower)
    {
        return stationRealKpiMapper.deleteStationRealKpiByDayPower(dayPower);
    }
}
